package speed2010.util;

import speed2010.middleware.comunicacao.Address;

public class AddressESpeedClusterOntology{
	private Address address = null;
	private SpeedClusterOntology speedClusterOntology = null;
	private long time = 0;
	
	public AddressESpeedClusterOntology(Address address , SpeedClusterOntology speedClusterOntology){
		this.address = address;
		this.speedClusterOntology = speedClusterOntology;
		this.time = System.currentTimeMillis();
	}

	public Address getAddress() {
		return address;
	}
	
	public long getTime(){
		return this.time;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	public SpeedClusterOntology getSpeedClusterOntology() {
		return speedClusterOntology;
	}

	public void setSpeedClusterOntology(SpeedClusterOntology speedClusterOntology) {
		this.speedClusterOntology = speedClusterOntology;
	}
	
	@Override
	public String toString(){
		return address.toStringReduzido() + "-" + time;
	}
}